package com.cxl.live.system.mapper;

import com.cxl.live.base.Mapper;
import com.cxl.live.system.dto.User;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: UserMapper
 * @Author: ChenXueLi
 * @Date: 2018-11-10 14:18
 */
public interface UserMapper extends Mapper<User> {

    /**
     * 添加用户
     * @param user
     * @return
     */
    int addUser(User user);

    /**
     * 根据账号获取用户信息
     * @param account
     * @return
     */
    User getUserByAccount(@Param("account")String account);

}
